package org.example.DesignPatterns.ChainOfResponsibility;

/**
 * @description:
 * @author: farprt
 * @create: 2022-09-20 20:56
 **/
public class CEO extends Approver{

    public CEO(String name){
        super(name);
    }

    @Override
    public void approve(int amount) {
        if (amount <= 10000) {
            System.out.println("审批通过，总监[" + name + "]");
        } else {
            System.out.println("驳回申请，总监[" + name + "]");
        }
    }

}